package login.Model.entity;

public class User {
    private int id;  //序号
    private String username;  //用户名
    private String password;  //密码
    private String postbox;  //邮箱
    private String phoneNumber;  //电话号码
    private String name;  //姓名
    private String direction;  //方向
    private String phase;  //期数

    public User() {
    }

    public User(int id, String username, String password, String postbox, String phoneNumber, String name, String direction, String phase) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.postbox = postbox;
        this.phoneNumber = phoneNumber;
        this.name = name;
        this.direction = direction;
        this.phase = phase;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPostbox() {
        return postbox;
    }

    public void setPostbox(String postbox) {
        this.postbox = postbox;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }

    public String getPhase() {
        return phase;
    }

    public void setPhase(String phase) {
        this.phase = phase;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", postbox='" + postbox + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", name='" + name + '\'' +
                ", direction='" + direction + '\'' +
                ", phase='" + phase + '\'' +
                '}';
    }
}
